//
//  HuoDongViewController.m
//  jiyujiaProgram
//
//  Created by 中良 赵 on 15/12/9.
//  Copyright © 2015年 中良 赵. All rights reserved.
//

#import "HuoDongViewController.h"
#import "Common.h"

@interface HuoDongViewController ()<UIWebViewDelegate>

@end

@implementation HuoDongViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
//    http://sh.china-asahi.com/artShow.php?id=2371
    [SVProgressHUD show];
    [_webview setDelegate:(id<UIWebViewDelegate> _Nullable)self];
    [_webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://sh.china-asahi.com/artShow.php?id=2371"]]];
    
    
}
- (void)webViewDidStartLoad:(UIWebView *)webView{
    NSLog(@"start...");
}
- (void)webViewDidFinishLoad:(UIWebView *)webView{
    NSLog(@"success...");
    [SVProgressHUD dismissWithSuccess:@"加载成功"];

}
- (void)webView:(UIWebView *)webView didFailLoadWithError:(nullable NSError *)error{
    [SVProgressHUD dismissWithError:@"加载失败"];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)backAction:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

@end
